package com.qidianit.mes.common;

/**
 * @company 起点编程
 * @author 戴着假发的程序员
 * @date 2025/7/22 10:47
 * @description 系统常量类，定义系统通用常量
 */
public class Constant {

    // 系统信息
    public static final String SYSTEM_NAME = "MES系统";
    public static final String SYSTEM_VERSION = "1.0.0";

    // 状态码
    public static final int SUCCESS_CODE = 200;
    public static final int ERROR_CODE = 500;

    // 通用状态
    public static final String STATUS_ACTIVE = "active";
    public static final String STATUS_INACTIVE = "inactive";

    // 通用操作结果
    public static final String OPERATION_SUCCESS = "操作成功";
    public static final String OPERATION_FAILED = "操作失败";

    // 日期格式
    public static final String DATE_FORMAT = "yyyy-MM-dd";
    public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
    public static final String TIMESTAMP_FORMAT = "yyyy-MM-dd HH:mm:ss.SSS";

    // 通用标志
    public static final Integer FLAG_YES = 1;
    public static final Integer FLAG_NO = 0;

    // 分页默认参数
    public static final int DEFAULT_PAGE_SIZE = 10;
    public static final int DEFAULT_PAGE_NUMBER = 1;
}